package com.ruoyi.question.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;

import lombok.Data;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

/**
 * 回答对象 q_answer
 *
 * @author zouhao
 * @date 2024-09-11
 */
@Data
public class QAnswer implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /** 房间号 */
    @Excel(name = "房间号")
    private Integer zoomId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 问题ID */
    @Excel(name = "问题ID")
    private Long questionId;

    @TableField("`index`")
    private Integer index;

    /** 回答的答案 */
    @Excel(name = "回答的答案")
    private String answer;

    /** 回答是否正确 */
    @Excel(name = "回答是否正确")
    private Boolean result;

    /** 分数 */
    @Excel(name = "分数")
    private Integer score;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
